<?php
return array(
    'controllers' => array(
        'factories' => array(
            'Front\Controller\Index' =>
            'Front\Factory\Controller\IndexControllerFactory',
            'Front\Controller\Login' =>
            'Front\Factory\Controller\LoginControllerFactory',
        ),
        'invokables' => array(
        ),
    ),


    'router' => array(
        'routes' => array(
            'login.login' => array(
                'type' => 'literal',
                'options' => array(
                    'route' => '/login/login',
                    'defaults' => array(
                        'controller' => 'Front\Controller\Login',
                        'action' => 'login'
                    )
                )
            ),
            'login.logout' => array(
                'type' => 'literal',
                'options' => array(
                    'route' => '/logout',
                    'defaults' => array(
                        'controller' => 'Front\Controller\Login',
                        'action' => 'logout'
                    )
                )
            ),
            'login.register-user' => array(
                'type' => 'literal',
                'options' => array(
                    'route' => '/register-user',
                    'defaults' => array(
                        'controller' => 'Front\Controller\Login',
                        'action' => 'register-user'
                    )
                )
            ),
        ),
    ),
    'view_manager' => array(
        'template_map' => array(
            'front/index/index' => __DIR__ .  '/../view/front/index/index.php',
            'error/index'             => __DIR__ . '/../view/error/index.php',
            'error/404'               => __DIR__ . '/../view/error/404.php',
        ),
        'template_path_stack' => array(
            __DIR__ . '/../view',
            __DIR__ . '/../view/layout',
            CORE_COMMON_TEMPLATE.'/includes',
            CORE_COMMON_TEMPLATE.'/blocks',
            CORE_COMMON_TEMPLATE.'/tmp',
        ),
        'strategies' => array(
            'ViewJsonStrategy',
        ),
        'display_exceptions' => true,
//        'exception_template' => 'error/index',
        'display_not_found_reason' => true,
        'not_found_template'       => 'error/404',
        'default_template_suffix'=>'php',
    )


);
?>